package com.isprint.jslx.lcc.config;


import com.isprint.jslx.lcc.model.User;

import java.io.Serializable;


public class Adminer implements Serializable {
	
	private static final long serialVersionUID = 8675722327909147851L;
	
	private Long ID = 0L;
	public Long getID() {
		return ID;
	}
	public void setID(Long iD) {
		ID = iD;
	}
	
	private String Name = "";
	public String getName() {
		return Name;
	}
	public void setName(String name) {
		Name = name;
	}
	
	private String Login_Name = "";
	public String getLoginName(){
		return Login_Name;
	}
	public void setLoginName(String login_name){
		Login_Name = login_name;
	}
	

	public static Adminer getAdminerByUser(User user){

		Adminer adminer = new Adminer();
		adminer.setID( user.getId());
		adminer.setName(user.getUsername());
		adminer.setLoginName(user.getLogName());
		return adminer;
	}
}
